<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><s:property value="#session.access"/></title>
<meta name="viewport" content="width=device-width,inital-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="format-detection" content="telephone=no,email=no,adress=no">
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath() %>/css/bootstrap.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath() %>/css/bootstrap-responsive.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath() %>/js/date/skin/WdatePicker.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/bootstrap.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/date/WdatePicker.js"></script>
<script type="text/javascript">

</script>
</head>
<body>
	<div class="container">
		
		<s:action name="global_menu"  executeResult="true"></s:action>
		
		<div class="row">
			<div class="span12">
					<ul class="breadcrumb">
						<li>
							<a href="javascript:void(0)">首页</a> <span class="divider">/</span>
						</li>
						<li>
							<a href="javascript:void(0)">交易管理</a> <span class="divider">/</span>
						</li>
						<li class="active">
							冻结记录
						</li>
					</ul>
					
					<h5>
						冻结列表
					</h5>
					
					<form id="sform" action="msm_viewrefuse.html" method="get" enctype="multipart/form-data">
						<table>
							<tr>
								<td height="40">
									<s:textfield  id="txnNo" name="txnNo" placeholder="交易流水号"></s:textfield>
									<s:textfield  id="txnOrder" name="txnOrder" placeholder="订单号"></s:textfield>
									<s:textfield  id="txnSite" name="txnSite" placeholder="来源网站"></s:textfield>
									<s:textfield  id="txnDateTop"  name="txnDateTop" placeholder="交易日期起"  onclick="WdatePicker();"  cssStyle="width:100px;" ><s:param name="value"><s:date name="txnDateTop" format="yyyy-MM-dd"/></s:param></s:textfield>
									 - 
									<s:textfield  id="txnDateEnd"  name="txnDateEnd" placeholder="交易日期止"  onclick="WdatePicker();"  cssStyle="width:100px;" ><s:param name="value"><s:date name="txnDateEnd" format="yyyy-MM-dd"/></s:param></s:textfield>
									<input type="button"    class="btn btn-primary"  value="查询" onclick="sform.submit();"/>
									<input type="button"    class="btn"  value="高级搜索" onclick="$('.condition').toggle();"/>
								</td>
							</tr>
							<tr class="condition" style="display: none;">
								<td height="40">
									<s:select cssStyle="width:120px;" id="msState" name="msState" list="#{'1':'有效','0':'无效'}" headerKey="" headerValue="冻结状态"/>
									<s:textfield  id="msDateTop"  name="msDateTop" placeholder="冻结日期起"  onclick="WdatePicker();"  cssStyle="width:100px;" ><s:param name="value"><s:date name="msDateTop" format="yyyy-MM-dd"/></s:param></s:textfield>
									 - 
									<s:textfield  id="msDateEnd"  name="msDateEnd" placeholder="冻结日期止"  onclick="WdatePicker();"  cssStyle="width:100px;" ><s:param name="value"><s:date name="msDateEnd" format="yyyy-MM-dd"/></s:param></s:textfield>
								</td>
							</tr>
						</table>
					</form>
					
					<table class="table table-bordered table-striped">
						<thead>
							<tr>
								<th>关联交易号</th>
								<th>交易订单号</th>
								<th>交易网站</th>
								<th>交易金额</th>
								<th>交易日期</th>
								<th>冻结金额</th>
								<th>冻结状态</th>
								<th>冻结日期</th>
								<th width="15%">冻结备注</th>
							</tr>
						</thead>
						<tbody>
							<s:iterator value="msTransactionList" id="show" status="seq">
							<tr>
							<td><a href="<%=request.getContextPath()%>/transaction_show.html?txnNo=<s:property value="#show.txnNo"/>"><s:property value="#show.txnNo"/></a></td>
							<td><s:property value="#show.txnOrder"/></td>
							<td><s:property value="#show.txnSite"/></td>
							<td><s:text name="global.format.number"><s:param value="#show.txnAmount"/></s:text></td>
							<td><s:text name="global.format.dateminute"><s:param value="#show.txnDate"/></s:text>
							<td><s:text name="global.format.number"><s:param value="#show.msAmount"/></s:text></td>
							<td><s:if test="#show.msState==0"><img src="<%=request.getContextPath() %>/image/cancel.png"  /></s:if><s:else><img src="<%=request.getContextPath() %>/image/accept.png"  /></s:else></td>
							<td><s:text name="global.format.dateminute"><s:param value="#show.msDate"/></s:text>
							<td><s:property value="#show.msRemark"/></td>
							</tr>
							</s:iterator>
						</tbody>
					</table>				
					
					<p style="float: right;">
					当前查询结果内金额汇总 : <s:text name="global.format.number"><s:param value="msTotal"/></s:text> CNY</p>
					
					<%String paga="/"+session.getAttribute("access")+"/page.jsp"; %>
					<s:set name="pageInfo" value="pageInfo"></s:set> <jsp:include flush="true" page="<%=paga %>"></jsp:include>
					
					<div class="hero-unit" style="padding: 15px;font-size: 14px;line-height: 20px;">
						<p>
							1 . 交易相关的退款拒付等,金额单位都是以汇率转换后的人民币金额来计算和展示的.
						</p>
					</div>
					
				</div>
		</div>
		
		
		<s:action name="global_foot"  executeResult="true"></s:action>
	</div>
</body>
</html>

